package com.csii.activiti.server.api;

import com.csii.activiti.server.api.vo.Result;
import com.csii.activiti.server.core.entity.ActFlowServiceNode;
import com.csii.activiti.server.core.service.FlowServerNodeService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


@Api(tags="服务节点")
@RestController
@RequestMapping("/${activity.basic.url:activiti}/flow/serverNode")
@Slf4j
public class FlowServerNodeController {

    @Autowired
    private FlowServerNodeService flowServerNodeService;


    @ApiOperation("查询数据列表")
    @GetMapping("/queryServiceNodes")
    public Result<List<ActFlowServiceNode>> queryServiceNodes(){
        return Result.ok(flowServerNodeService.queryServiceNodes());
    }


}
